package org.csu.mypetstore.domin;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;

@Data
@TableName("userorder")
public class Order {

    @TableId(type = IdType.AUTO)
    private int id;
    private String username;
    private String descn;
    private String productid;
    private String itemid;
    private int num;
    @TableField(value = "total_cost")
    private BigDecimal totalcost;
    private String address;
    private String productname;
    private int isdelivery;
}
